<?php

use Illuminate\Database\Migrations\Migration;
use Illuminate\Database\Schema\Blueprint;
use Jialeo\LaravelSchemaExtend\Schema;

class AddSelfAuditErrorNumToCruiseCheckDetails extends Migration
{
    /**
     * Run the migrations.
     *
     * @return void
     */
    public function up()
    {
        Schema::table('cruise_check_details', function (Blueprint $table) {
            $table->unsignedSmallInteger('selfAuditErrorNum')->default(0)->comment('自检，督导审核不合格数量')->after('qualityScore');
        });
    }

    /**
     * Reverse the migrations.
     *
     * @return void
     */
    public function down()
    {
        Schema::table('cruise_check_details', function (Blueprint $table) {
            $table->dropColumn('selfAuditErrorNum');
        });
    }
}
